using System;
using SpiderMaster;
using SpiderMaster.AspNet;

namespace SpiderMaster.AspNet.TradingSystem.UI
{
    public partial class Default_aspx : TradingCenterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            try { MembershipDBConnectionLabel.Text = TradingCenter.Current.MembershipDBCanConnect ? "Connected!" : "Connection String is incorrect."; }
            catch (Exception ex)
            {
                if (ex.IsNotNull())
                    MembershipDBConnectionLabel.Text = ex.Message;
            }

            try { TradingCenterDBConnectionLabel.Text = TradingCenter.Current.SQLDBCanConnect ? "Connected!" : "Connection String is incorrect."; }
            catch (Exception ex)
            {
                if (ex.IsNotNull())
                    TradingCenterDBConnectionLabel.Text = ex.Message;
            }
        }

        protected void CommonWhatsNewButton_Click(object sender, EventArgs e)
        {
            CommonWhatsNewButton.CommandArgument = "CrossPagePost";
        }
    }
}